package sieve

import (
	"github.com/google/wire"
	"sieve_admin_server_userpass/app/api/util"
	"sieve_admin_server_userpass/app/server"
)

var _ util.API = (*UploadSieveAPI)(nil)

var UploadSieveSet = wire.NewSet(wire.Struct(new(UploadSieveAPI), "*"))

type UploadSieveAPI struct {
	util.EmptyAPI
}

func (a *UploadSieveAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "upload",
			Title: "上传料子", Perms: []*server.Perm{
				{Name: "add", Title: "创建仓库"},
				{Name: "query", Title: "查询"},
				{Name: "del", Title: "删除"},
				{Name: "getExpiredTime", Title: "获取仓库过期时间"},
			},
			Order: 9,
		},
	}
}
